package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.PaperQuestion;
import com.example.demo.entity.Question;
import com.example.demo.mapper.PaperQuestionMapper;
import com.example.demo.service.IPaperQuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @descreption:
 * @author: xhr
 * @date: 2022/09/04
 */
@Service
public class IPaperQuestionServiceImpl extends ServiceImpl<PaperQuestionMapper, PaperQuestion>  implements IPaperQuestionService {
    @Resource
    private PaperQuestionMapper paperQuestionMapper;

    @Override
    public List<Question> selectQuestions(Integer paperId) {
        return paperQuestionMapper.selectQuestions(paperId);
    }
}
